<template>
    <!--单例模式，name相同则复用一个无界实例，改变url则子应用重新渲染实例到对应路由 -->
    <WujieVue v-if="url" width="100%" height="100%" :name="name" :url="url" :sync="true"></WujieVue>
</template>
  
<script>
import hostMap from "../hostMap";

export default {
    data() {
        return {
            name: null,
            url: null,//hostMap("//localhost:7500/"),
        };
    },
    created() {
        console.log(this.$router.history.current)
        this.name = this.$router.history.current.name
        this.url = hostMap(this.$router.history.current.meta.hostMap)
    },
};
</script>
  
<style lang="scss" scoped></style>
  